package com.ylr.admin.common.vo.role;

import com.ylr.base.common.jsr303.group.Save;
import com.ylr.base.common.jsr303.group.Update;
import lombok.Getter;
import lombok.Setter;
import lombok.ToString;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;

/**
 * Created by IntelliJ IDEA.
 *
 * @author wyw
 * date: 2023-05-09 16:53:38
 * className: RoleVo
 * version: 1.0
 * description:
 * 	系统角色表
 */
@Getter
@Setter
@ToString
public class RoleVo {

	/**
	 * 主键
	 */
	@NotNull(message = "主键不能为空", groups = Update.class)
	private Long id;

	/**
	 * 角色名称
	 */
	@NotBlank(message = "角色名称不能为空", groups = { Save.class, Update.class})
	private String roleName;

	/**
	 * 角色键
	 */
	@NotBlank(message = "角色键不能为空", groups = { Save.class, Update.class})
	private String roleKey;

	/**
	 * 角色类型
	 */
	@NotNull(message = "角色类型不能为空", groups = { Save.class, Update.class})
	private Integer type;

	/**
	 * 排序等级
	 */
	@NotNull(message = "排序等级不能为空", groups = { Save.class, Update.class})
	private Integer sort;

	/**
	 * 备注
	 */
	private String remark;

}
